package com.ncepu.clubmanagement.pojo;

import com.ncepu.clubmanagement.pojo.inter.PermissionLevel;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
public class PermissionOfThreeLevel implements PermissionLevel {
    private Integer permissionLevel;

    public PermissionOfThreeLevel(Integer permissionLevel) {
        if (permissionLevel == PERMISSION_CLUB)
            permissionLevel = PERMISSION_NORMAL;   //三级模型中不能够传入社团管理员级
        this.permissionLevel = permissionLevel;
    }
}
